import {getData, postData} from "./http";

export const getMenusList = () =>getData(`/menus/getMenusList`);

export const getAllMenus = (currentPage,size,data) => postData(`/menus/getAllMenus?currentPage=${currentPage}&size=${size}`,data);

export const getMenusByLevel = (data) =>postData(`/menus/getMenusByLevel`,data);

export const addMenu = (data) => postData(`/menus/addMenu`, data);

export const getMenuById = (data) => postData(`/menus/getMenuById`, data);

export const changeMenuById = (data) => postData(`/menus/changeMenuById`, data);

export const deleteMenuById = (data) => postData(`/menus/deleteMenuById`, data);
